package com.qlzb.taskmanagement.vo.quartzVo;

/**
 * Created by zhangshao on 2018/3/31.
 * 抓取对象的用户信息
 */
public class AreaUser {
    //区域名称
    public String name;
    //运维系统账号
    public String  username;
    //运维系统密码
    public String  password;
    //区域id 对应sys_area 的区域id
    public String  areaid;
    //远程铁塔主程序地址
    public String  remoteHost;
    //运维系统的id
    public String unitHidden;
    //任务是否结束
    public boolean flag=true;
    //登录状态
    public boolean loginFlag=true;
    //省用户信息
    public ProviceUser proviceUser;
    //自定义的参数
    public AreaDefineParam[] areaDefineParam;
    //历史纪录解析模式
    public String hParseMode;
    //新旧系统
    public  String  validateCodeModel;
    //在途工单使用哪种模式
    public String workOrderMode="new";
    //public DataLists data=new DataLists();

    public AreaUser(String name, String areaid, String remoteHost){
        this.name=name;
        this.areaid=areaid;
        this.remoteHost=remoteHost;
    }
    public AreaUser(String name, String username, String password, String areaid, String remoteHost, String unitHidden, ProviceUser proviceUser){
        this.name=name;
        this.username=username;
        this.password=password;
        this.areaid=areaid;
        this.remoteHost=remoteHost;
        this.unitHidden=unitHidden;
        this.proviceUser=proviceUser;
    }
    public AreaUser(String name, String username, String password, String areaid, String remoteHost, String unitHidden, ProviceUser proviceUser, AreaDefineParam ...param ){
        this.name=name;
        this.username=username;
        this.password=password;
        this.areaid=areaid;
        this.remoteHost=remoteHost;
        this.unitHidden=unitHidden;
        this.proviceUser=proviceUser;
        this.areaDefineParam=param;
    }
    @Override
    public String toString(){
        return "name-"+name+"--username-"+username+"--password-"+password+"--areaid-"+areaid+"--remoteHost-"+remoteHost+"--hostName-"+ proviceUser.hostName;
    }

}
